package com.imooc.grance.result;

public enum EnumTest {

    SUCCESS(200, true, "响应成功"),
    FAILED(400,false,"响应失败");


    /**
     * 状态码
     */
    private Integer code;
    /**
     * 失败还是成功
     */
    private Boolean success;
    /**
     * 返回信息
     */
    private String msg;

    EnumTest(Integer code, Boolean success, String msg) {
        this.code = code;
        this.success = success;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public Boolean getSuccess() {
        return success;
    }

    public String getMsg() {
        return msg;
    }
}
